﻿namespace PillBox.Client.ViewModels
{
    using System.Collections.Generic;
    using PillBox.Client.Framework;
    using PillBox.Client.Model;

    public class MedicationChoiceViewModel : ViewModelBase
    {
        private Medication _medication;
        public Medication Medication
        {
            get { return _medication; }
            set
            {
                _medication = value;
                RaisePropertyChanged(() => Medication);
            }
        }

        public IEnumerable<IResult> Open()
        {
            yield return Show.Screen<MedicationDetailsViewModel>().Configured(x => x.With(this.Medication));
        }
    }
}